﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Coinlist.aspx.vb" Inherits="Crazyforcoins.Coinlist" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <br />
    </p>
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" GridLines="None" 
            DataKeyNames="ID" DataSourceID="MyCoinsDb" Height="66px" Width="780px" 
            AllowSorting="True">
            <Columns>
                <asp:TemplateField HeaderText="Picture">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("Picture") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                    <asp:HyperLink ID="HyperLink1" NavigateUrl='<%# Eval("ID", "CoinDetail.aspx?ID={0}") %>' runat="server">
                        <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("Picture") %>' CssClass="imgsize" />
                           </asp:HyperLink>
                    </ItemTemplate>
                   
                </asp:TemplateField>
                <asp:BoundField DataField="Category" HeaderText="Category" 
                    SortExpression="Category" >
                    
                </asp:BoundField>
                <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
                <asp:BoundField DataField="Availability" HeaderText="Availability" 
                    SortExpression="Availability" >
                    
                </asp:BoundField>
               <asp:BoundField DataField="Condition" HeaderText="Condition" 
                    SortExpression="Condition" >
                    
                </asp:BoundField>
                    
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#B8860B" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
        <asp:SqlDataSource ID="MyCoinsDb" runat="server" 
            ConnectionString="<%$ ConnectionStrings:CoinsConn %>" 
            ProviderName="<%$ ConnectionStrings:CoinsConn.ProviderName %>" 
            SelectCommand="SELECT * FROM [Coins]"></asp:SqlDataSource>
    </p>
    <p>
    </p>
    <p>
    </p>
</asp:Content>
